<?php

/**
 * Object/Action.php
 */

namespace RHX\Model\Object;

class Action {

    public $id;
    public $libelle;
    public $function;
    public $description;

    /**
     * Constructeur
     *
     * @param array $data
     */
    public function __construct($data = array()) {
	$this->exchangeArray($data);
    }

    /**
     * Remplir les données
     *
     * @param array $data
     */
    public function exchangeArray($data = array()) {
	$this->id		 = isset($data['id']) ? $data['id'] : null;
	$this->libelle		 = isset($data['libelle']) ? $data['libelle'] : '';
	$this->function		 = isset($data['function']) ? $data['function'] : '';
	$this->description	 = isset($data['description']) ? $data['description'] : '';
    }

}

?>
